package com.xfcode.ai.config;


import com.xfcode.ai.sdk.ChatModelClient;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
public class AiChatConfiguration {
    @Autowired
    private AiChatOptionProperties aiChatOptions;
    @Bean
   public ChatModelClient chatModelClient(){
       return  new ChatModelClient(aiChatOptions.getApiKey());
   }
}
